home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1301 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  550 b   |  22 lines

  1. on(release){
  2.    if(_root.magRune >= 10 && _root.exploRune >= 15 && _root.fireRune >= 10 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 10;
  5.       _root.exploRune -= 15;
  6.       _root.fireRune -= 10;
  7.       this.timey.timer = 0;
  8.       this.timey.timeIt = 0.06 + _root.spe * 0.005;
  9.       if(this.timey.timeIt > 1.5)
  10.       {
  11.          this.timey.timeIt = 1.5;
  12.       }
  13.       this.timey._visible = true;
  14.       _root.nukeN._visible = true;
  15.       _root.nukeN.play();
  16.    }
  17.    else
  18.    {
  19.       _root.messy = "Not enough Runes";
  20.    }
  21. }
  22.